package com.peppa.controller.fronted;

import com.peppa.entity.dto.MainPageInfoDTO;
import com.peppa.entity.dto.Result;
import com.peppa.service.combine.HeadLineShopCategoryService;
import lombok.Getter;
import org.simpleframework.core.annotation.Controller;
import org.simpleframework.inject.annotation.AutoWired;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller
@Getter
public class MainPageController {
    @AutoWired
    private HeadLineShopCategoryService headLineShopCategoryService;
   public Result<MainPageInfoDTO> getMainPageInfo(HttpServletRequest req, HttpServletResponse resp){
          return   headLineShopCategoryService.getMainPageInfo();
   }
}
